home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #3
/
Amiga Plus CD - 2002 - No. 03.iso
/
AmiSoft
/
Util
/
Cli
/
Srename.lha
/
SRename
/
SRename scripts
/
SRename_scripts.doc
< prev
next >
Wrap
Text File
|
2003-01-31
|
2KB
|
59 lines
SRename scripts
---------------
If you have to use the command line to perform the renaming that you want
you can avoid having to type complex SRename functions all the time by using
small scripts that call SRename, like macros.
A few such scripts are supplied that can be run just like ordinary CLI
programs once the 'S' flag is set for each one. They should be installed in
the S: directory.
The scripts are:
CleanIllegal <file pattern> : Removes illegal characters from filenames
ClipLength <length> <file pattern> : Clips the length of filenames
DeleteChars <characters> <file pattern> : Deletes the given characters
FilenameToComment <file pattern> : Copies the filename to the comment
FindIllegal <file pattern> : Reports filenames with illegal characters
FnameToHex <file pattern> : Converts the filename to hex byte values
HexToChr <file pattern> : Converts hex byte values to characters
ReplaceString <old string> <new string> <file pattern> : Replaces one string
with another.
SetComment <new comment> <file pattern> : Sets the comment of a file
SpaceToUnder <file pattern> : Converts spaces to underscores
SwapStrings <string1> <string2> <file pattern> : Swaps the contents of 2
strings
UnderToSpace <file pattern> : Converts underscores to spaces
UpAfterSpc <file pattern> : Makes uppercase the first character of each word
UpAfterSpcAndLower <file pattern> : As above but also makes the rest of the
filename lowercase.
UpFirst <file pattern> : Makes uppercase the first character of the filename
UpFirstAndLower <file pattern> : As above but also makes the rest of the
filename lowercase.
Each of them can accept after the file pattern more arguments like for example
ALL, RLEVEL, SLEVEL, FILES, DIRS.
These scripts are just examples. Each user can modify them to suit his needs or
write his own.